<div class="knPost">
	<div class="knPostSocialButtons">
		<div class="knPostRecommend" onclick="javascript:recommendArticle();">
			{$TEXT_RECOMMEND}
		</div>
		<div class="knPostPlusOne"><g:plusone count="false"></g:plusone></div>
		<!-- Facebook Like Button -->
		<div id="fb-root"></div>
		<div class="fb-like" data-href="http://{$primary_domain}/{$article.url}.html" 
			data-send="false" data-width="400" data-show-faces="false" data-font="arial"></div>
	</div>

	<h2 class="knPostTitle">
		&laquo; 
		<a id="knPostTitleText" href="/{$article.url}.html">
			{$article.title}
		</a> 
		&raquo;
	</h2>
	<div class="knPostDate">
			<!-- (dd.MM.yyyy HH:ii) -->
			({$article.date_ts|date_format:"%d.%m.%Y %H:%M"})
	</div>
	<div class="knPostBody">
		{$article.formatted_body|stripslashes}
		
		{if $bookOffers|count > 0}
			{assign var="bookOfferTextFile" value='themes/desktop/lang/'|cat:$languageCode}
			{assign var="bookOfferTextFile" value=$bookOfferTextFile|cat:'/bookoffer-text.tpl'}
			{include file=$bookOfferTextFile}
		{/if}
	</div>

	{if $recommendationList|count > 0}
		{$TEXT_ALSO_INTERESTED}<br /><br />
		{assign var="recommendationViewCount" value=0}
		{assign var="recommendationCount" value=0}
		{foreach from=$recommendationList item=recommendationItem}
			{if $recommendationItem.url!=$article.url && $recommendationCount < 6}
				{assign var="recommendationViewCount" value=$recommendationViewCount+$recommendationItem.views}
			{/if}
		{/foreach}
		
		{assign var="recommendationCount" value=0}
		{foreach from=$recommendationList item=recommendationItem}
			{if $recommendationItem.url!=$article.url && $recommendationCount < 6}
				{assign var="recommendationCount" value=$recommendationCount+1}
				{assign var="recommendationView" value=($recommendationItem.views / $recommendationViewCount)*100}
				{assign var="recommendationRating" value=1}
				<div class="recommendationItem">
					<div class="recommendationItemTitle">
						<a href="/{$recommendationItem.url}.html">{$recommendationItem.title}</a>
					</div>
					{if $recommendationView >= 5}
						{assign var="recommendationRating" value="2"}
					{/if}
					{if $recommendationView >= 10}
						{assign var="recommendationRating" value="3"}
					{/if}
					{if $recommendationView >= 15}
						{assign var="recommendationRating" value="4"}
					{/if}
					{if $recommendationView >= 20}
						{assign var="recommendationRating" value="5"}
					{/if}
					<div class="recommendationItemRating" style="background-image:url('/themes/desktop/img/rating/{$recommendationRating}star.gif');">
						{$recommendationItem.views} {$TEXT_VISITORS_ALSO_READ}
					</div>
				</div>
			{/if}
		{/foreach}
		<div style="clear:both;"></div>
	{/if}
	<br />
	{include file="themes/desktop/comment.tpl"}
</div>
